home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9185 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Q: How to get System Key Code?
  5. Date: 8 Mar 1996 09:29:13 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4hpqp9INN4n8@keats.ugrad.cs.ubc.ca>
  8. References: <4hom06$1um@usenet.hana.nm.kr>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4hom06$1um@usenet.hana.nm.kr>,
  12. SeongTae Kwag  <kst@juliet.kci.co.kr> wrote:
  13.  >I work on SUN sparc 20 with Solaris 2.x.
  14.  >I need to know the value of  Right Control keycode to continue 
  15.  >my work. I have tried to read it using  "kb" module, but 
  16.  >failed. I can't know what must be done to read this value.
  17.  >Please, help me read this system keycode.
  18.  
  19. What does this have to do with the C language?
  20.  
  21. If you are working with curses, there may be a way to read that value as a
  22. special curses code. If you are working with X, use the ``xev'' program to find
  23. out the keysym/keycode value generated by the keystroke.
  24.  
  25. Run ``xev'', put the mouse into its little window and then hit the key, and
  26. read the output in the terminal whence you launched xev.
  27. -- 
  28.  
  29.